package com.fitso.model.bean;

import java.io.Serializable;

import org.joda.time.DateTime;

/**
 * Parent of all beans that are part of the domain and by extension can be
 * stored in a data source
 * 
 * @author timothystorm
 */
public abstract class ModelBean implements Serializable {
	// Only change on breaking changes, i.e., removing fields
	private static final long serialVersionUID = 1L;

	private Long _id;
	private DateTime _updated;
	private DateTime _created;

	public Long getId() {
		return _id;
	}

	@SuppressWarnings("unused")
	private void setId(Long id) {
		_id = id;
	}

	public DateTime getUpdated() {
		return _updated;
	}

	protected void setUpdated(DateTime updated) {
		_updated = updated;
	}

	public DateTime getCreated() {
		return _created;
	}

	protected void setCreated(DateTime created) {
		_created = created;
	}
}
